def digit_pos_match(n, k):
    """
    >>> digit_pos_match(980, 0) # .Case 1
    True
    >>> digit_pos_match(980, 2) # .Case 2
    False
    >>> digit_pos_match(98276, 2) # .Case 3
    True
    >>> digit_pos_match(98276, 3) # .Case 4
    False
    """
    "*** YOUR CODE HERE ***"
    flag=-1
    i=0
    while n>0:
        flag=n%10
        n=n//10
        if flag==k:
            flag=1
            break
        if i==1:
            return True
        elif i==0:
            return False